This resource address can be used to update the properties for the specified task.
Response Headers | |
---|---|
Content-type | The MIME type of the data in the response
body. Depending upon the value of the format parameter or Accept header, either
application/xml or application/json . |
Upon success, MarkLogic Server returns status code 204 (No Content). If the payload is malformed or the privilege does not exist, a status code of 400 (Bad Request) is returned. A status code of 401 (Unauthorized) is returned if the user does not have the necessary privileges.
manage-admin
role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage-admin
The security
role is required to set the task-user
property.
task-enabled
. The rest of
properties listed below are read-only. Note: The properties described here are
for XML payloads. In general they are the same for JSON, with the exception that, in JSON,
task-days
is expressed in singular form. For example, in JSON,
task-days
is instead task-day
and the format is as shown in the
following example.
scheduled-task-relations
This is a complex structure with the following children:
relation
This is a complex structure with the following children:
qualifiers
This is a complex structure with the following children:
qualifier
This is a complex structure with the following children:
uriref
typeref
idref
nameref
uriref
typeref
roleref
idref
nameref
relation-id
task-id
task-enabled
task-path
task-root
task-type
task-period
task-month-day
task-days
This is a complex structure with the following children:
task-day
task-start-date
task-start-time
task-timestamp
task-user
task-priority
curl -X PUT --anyauth -u admin:admin -H "Content-Type:application/json" \ -d '{"task-enabled": "true"}' \ http://localhost:8002/manage/v2/tasks/myTask/properties ==> Changes the start time for the task, "myTask," to 10:00.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.